/**
 * 2018/05/10 by xiongisxiong
 * 小部件：上图标 下文字，弹性盒子布局
 */
import React from 'react'
import { View } from 'react-native'
import Icon from 'react-native-vector-icons/Ionicons'
import { Tip } from './TextTool'

export default ({icon, color = '#000', title}) => (
  <View style={{alignItems: 'center'}}>
    <Icon name={icon} size={25} color={color} />
    <Tip color={color}>{title}</Tip>
  </View>
)